FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER wang@qq.com

ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /wxscrmplus-monitor

WORKDIR /wxscrmplus-monitor

ADD ./target/wxscrm-monitor-admin.jar ./

CMD java $JAVA_OPTS -jar wxscrm-monitor-admin.jar --spring.profiles.active=prod
